package yao.com.exp3.entity;

/**
 * Created by lenovo on 2018/4/9.
 * 用户实体
 */

public class User{

    private int id;
    private String username;  //用户名
    private String password;  //密码
    private String sex;      //性别
    private String number;    // 学号 或者教师编号 或者管理员编号
    private String depart;    //学院
    private String email;     //邮箱
    private String tname;    // 真实姓名
    private int phone;      //电话
    private String avatarFilePath;

    public static String PHONENUMBER = "phoneNumber";
    public static String PASSWORD = "passWord";
    public static String USERNAME = "userName";

    public User() {
    }
    public User(int id, String username, String password, String sex, String number, String depart,String email, String tname, int phone) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.number = number;
        this.depart = depart;
        this.email = email;
        this.tname = tname;
        this.phone = phone;
    }

    public User(int id, String username, String password, String sex, String number, String depart,String email, String tname, int phone,String avatar) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.number = number;
        this.depart = depart;
        this.email = email;
        this.tname = tname;
        this.phone = phone;
        this.avatarFilePath = avatar;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public int getPhone() {
        return phone;
    }

    public void setPhone(int phone) {
        this.phone = phone;
    }

    public String getAvatarFilePath() {
        return avatarFilePath;
    }

    public void setAvatarFilePath(String avatarFilePath) {
        this.avatarFilePath = avatarFilePath;
    }
}
